/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pasremote;

import entities.Assignment;
import entities.PASSUser;
import entities.Submission;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author ryuju
 */
@Remote
public interface PASRemote {
    
    boolean login(String id, String pw);
    boolean register(String id, String pw, String userType, String asst_pw);
    boolean submit(Submission submission); 
    String getUserType();
    List<Submission> getSubmissionsByAssignmentID(Long asmtID); // return submission for asmtID
    List<Submission> getSubmissionsByUserLoginName(String name); // return all user's submissions
    List<Assignment> getAssignments(); // return all active assignment
    boolean rejudge(Long asmtID); // rejedge assignment for asmtID
    boolean createAssignment(Assignment assignment); // create assignment
    boolean modifyAssignment(Assignment assignment); // modify assignment
    List<Assignment> getAllAssignments(); // return list of all assignments
    List<Submission> getAllSubmissions(); // return list of all submissions

    public entities.Assignment getAssignment(java.lang.Long asmtID);

    public java.lang.String getLoginUserName();
 
}
